package com.gjy.concurrency.util;

import org.junit.jupiter.api.Test;

import java.util.concurrent.*;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2022-11-29 09:34:23
 */
public class SyncUtilTest {

    @Test
    public void test1() {
        Semaphore semaphore = new Semaphore(10);
        CountDownLatch countDownLatch = new CountDownLatch(10);
        CyclicBarrier cyclicBarrier = new CyclicBarrier(4);
        Exchanger<String> exchanger = new Exchanger<>();
        Phaser phaser = new Phaser();
    }
}
